package com.sc.admin.model.vo;

import com.alibaba.excel.annotation.ExcelProperty;
import com.alibaba.excel.annotation.format.DateTimeFormat;
import com.alibaba.excel.annotation.write.style.ColumnWidth;
import lombok.Data;
import lombok.experimental.Accessors;

import java.io.Serial;
import java.io.Serializable;
import java.time.LocalDateTime;

/**
 *@Author shen chen
 *@Date 2024-04-02
 */

/**
 * 系统访问记录
 */
@Data
@ColumnWidth(20)
@Accessors(chain = true)
public class SysLoginInfoExportVO implements Serializable {
    @Serial
    private static final long serialVersionUID = 1L;
    @ExcelProperty(value = "访问编号")
    private Long infoId;
    @ExcelProperty(value = "登录账号")
    private String loginName;
    @ExcelProperty(value = "登录地址")
    private String ipaddr;
    @ExcelProperty(value = "登录地点")
    private String loginLocation;
    @ExcelProperty(value = "浏览器")
    private String browser;
    @ExcelProperty(value = "操作系统")
    private String os;
    @ExcelProperty(value = "登录状态")
    private String status;
    @ExcelProperty(value = "操作消息")
    private String msg;
    @ExcelProperty(value = "登录日期")
    @DateTimeFormat("yyyy-MM-dd HH:mm:ss")
    private LocalDateTime loginTime;
}